<!DOCTYPE html>
<html>

<head>
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-form/jquery.form.js"></script>
    <link href="/styles/base.css" rel="stylesheet" type="text/css">
    <link href="/js/plugins/chosen/chosen.css" rel="stylesheet" type="text/css">
    <link href="/js/plugins/datepicker/datepicker.css" rel="stylesheet" type="text/css">
    <link href="/styles/setting.css" rel="stylesheet" type="text/css">
    <link href="/js/plugins/uploadifive/uploadifive.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/plugins/uploadifive/jquery.uploadifive.min.js"></script>
    <script type="text/javascript" src="/js/plugins/chosen/chosen.jquery.js"></script>
    <script type="text/javascript" src="/js/system/mytravelnotedetail.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-upload/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-upload/jquery.fileupload.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-upload/jquery.iframe-transport.js"></script>
    <script type="text/javascript" src="/js/plugins/datepicker/datepicker.js"></script>
    <script type="text/javascript" src="/js/system/setting.js"></script>
    <script type="text/javascript" src="/js/system/common.js"></script>
    <script type="text/javascript" src="/js/system/homepage.js"></script>
    <script>
       /* $(function () {
            $("#editpassword").validate({
                rules: {
                    password: {
                        required: true,
                        rangelength: [4, 8]
                    },
                    pudword: {
                        required: true,
                        rangelength: [4, 8]
                    },
                    pedword: {
                        required: true,
                        rangelength: [4, 8],
                        equalTo:"#pudword"
                    }
                },
                messages: {
                    password: {
                        required: "您的旧密码不能为空",
                        rangelength: "要4~8位的旧密码"
                    },
                    pudword: {
                        required: "您的新密码不能为空",
                        rangelength: "您的新密码可以是4~8位的任意字符"
                    },
                    pedword:{
                        required: "您的新密码不能为空",
                        rangelength: "您的新   密码可以是4~8位的任意字符",
                        equalTo: "您的新密码和确认密码不一致"
                    }
                }
            })*/


            $("#btn_submit").click(function () {
                $("#_j_reset_mobile_form").ajaxSubmit(function (data) {
                    console.log(data);
                    if(data.success){
                        alert("密码修改成功,请重新登录");
                        window.location.href="/login.html";
                    }
                })
            })

        })
    </script>


</head>

<body style="position: relative;">
    <#--修改密码-->
    <div class="add-info">
        <h1>
        <div class="hd">设置新密码</div>
        </h1>
        <div class="alert alert-info">短信验证码已下发，请注意查收。</div>
        <form action="/mine/amend" method="post" id="_j_reset_mobile_form">
            <div class="form-field">
                <input name="password" type="password" placeholder="您的密码" autocomplete="off" data-verification-name="密码" class="verification[required,minSize[6],maxSize[50]],funcCall[checkPasswordStrong]]">
                <div class="err-tip"></div>
            </div>
            <div class="form-field">
                <input name="rpassword" type="password" placeholder="确认密码" autocomplete="off" data-verification-name="密码" class="verification[equals[password]]">
                <div class="err-tip"></div>
            </div>
            <div class="form-field">
                <#--<input name="smscode" type="text" placeholder="短信验证码" autocomplete="off" data-verification-name="短信验证码" class="verification[required]">-->
                <div class="err-tip"></div>
            </div>
            <div class="submit-btn">
                <button type="button" id="btn_submit" >修改</button>
            </div>
        </form>
    </div>

</body>
</html>